package com.woniuxy.yuekeuser.service.impl;

import com.woniuxy.yuekeuser.model.CampsitePicture;
import com.woniuxy.yuekeuser.dao.CampsitePictureMapper;
import com.woniuxy.yuekeuser.service.ICampsitePictureService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Freedom
 * @since 2020-11-03
 */
@Service
public class CampsitePictureServiceImpl extends ServiceImpl<CampsitePictureMapper, CampsitePicture> implements ICampsitePictureService {
    @Autowired
    private CampsitePictureMapper campsitePictureMapper;

    @Override
    public List<CampsitePicture> getCampsitePictureByCampsiteId(Integer campsiteId) {
        return campsitePictureMapper.getCampsitePictureByCampsiteId(campsiteId);
    }

    @Override
    public List<CampsitePicture> getAllCampsitePicture() {
        return campsitePictureMapper.getAllCampsitePicture();
    }

    @Override
    public List<String> getOneCampsitePictureAddressById(int campsiteId) {
        return campsitePictureMapper.getOneCampsitePictureAddressById(campsiteId);
    }
}
